package com.caration.shell.utils;

import java.util.ArrayList;
import java.util.Iterator;

public final class b {
	private static ArrayList<String> mDialerList;
	private static ArrayList<String> mMsgList;
	private static ArrayList<String> mPeopleList;
	private static ArrayList<String> mCameraList;
	private static ArrayList<String> mClockList;
	private static ArrayList<String> mSettingsList;
	private static ArrayList<String> mBrowserList;
	private static ArrayList<String> mMusicList;
	private static ArrayList<String> mGalleryList;
	private static ArrayList<String> mVendingList;
	private static ArrayList<String> mMapsList;
	private static ArrayList<String> mCalendarList;
	private static ArrayList<String> mGMList;
	private static ArrayList<String> mEmailList;
	private static ArrayList<ArrayList<String>> mArray;

	// private static ac a(ArrayList arraylist) {
	// ac ac;
	// label0: {
	// x x1 = fm.h().k();
	// int j1 = arraylist.size();
	// for (int i1 = 0; i1 < j1; i1++) {
	// ac = x1.c((String) arraylist.get(i1));
	// if (ac != null)
	// break label0;
	// }
	//
	// ac = null;
	// }
	// return ac;
	// }

	public static void init() {
		mArray = new ArrayList<ArrayList<String>>();

		mDialerList = new ArrayList<String>();
		mDialerList
				.add("com.android.contacts/com.android.contacts.DialtactsActivity");
		mDialerList.add("com.android.htcdialer/com.android.htcdialer.Dialer");
		mDialerList
				.add("com.sec.android.app.dialertab/com.sec.android.app.dialertab.DialerTabActivity");
		mDialerList
				.add("com.sonyericsson.android.socialphonebook/com.sonyericsson.android.socialphonebook.DialerEntryActivity");
		mDialerList
				.add("com.android.htccontacts/com.android.htccontacts.DialerTabActivity");
		mDialerList
				.add("com.android.contacts/com.android.contacts.activities.DialtactsActivity");
		mDialerList
				.add("com.motorola.dialer/com.motorola.dialer.DialtactsContactsEntryActivity");
		mDialerList
				.add("com.android.contacts/com.android.contacts.TwelveKeyDialer");
		mDialerList
				.add("com.android.contacts/com.android.contacts.activities.TwelveKeyDialer");
		mArray.add(mDialerList);

		mMsgList = new ArrayList<String>();
		mMsgList.add("com.android.mms/com.android.mms.ui.ConversationList");
		mMsgList.add("com.sonyericsson.conversations/com.sonyericsson.conversations.ui.ConversationListActivity");
		mMsgList.add("com.android.mms/com.android.mms.ui.MmsTabActivity");
		mMsgList.add("com.motorola.blur.messaging/com.motorola.blur.messaging.MessagingActivity");
		mMsgList.add("com.android.mms/com.android.mms.ui.ConversationComposer");
		mMsgList.add("com.android.mms/com.android.mms.ui.traditional.MessageLaunchActivity");
		mArray.add(mMsgList);

		mPeopleList = new ArrayList<String>();
		mPeopleList
				.add("com.android.contacts/com.android.contacts.DialtactsContactsEntryActivity");
		mPeopleList
				.add("com.android.htccontacts/com.android.htccontacts.ContactsTabActivity");
		mPeopleList
				.add("com.android.contacts/com.sec.android.app.contacts.PhoneBookTopMenuActivity");
		mPeopleList
				.add("com.sonyericsson.android.socialphonebook/com.sonyericsson.android.socialphonebook.SocialPhonebookActivity");
		mPeopleList
				.add("com.android.htccontacts/com.android.htccontacts.BrowseLayerCarouselActivity");
		mPeopleList
				.add("com.android.contacts/com.android.contacts.activities.PeopleActivity");
		mPeopleList
				.add("com.motorola.blur.contacts/com.motorola.blur.contacts.ViewIdentitiesFacetActivity");
		mPeopleList
				.add("com.sonyericsson.android.socialphonebook/com.sonyericsson.android.socialphonebook.LaunchActivity");
		mArray.add(mPeopleList);

		mCameraList = new ArrayList<String>();
		mCameraList.add("com.motorola.Camera/com.motorola.Camera.Camera");
		mCameraList.add("com.android.camera/com.android.camera.CameraEntry");
		mCameraList
				.add("com.sec.android.app.camera/com.sec.android.app.camera.Camera");
		mCameraList.add("com.google.android.camera/com.android.camera.Camera");
		mCameraList.add("com.android.camera/com.android.camera.Camera");
		mCameraList
				.add("com.sonyericsson.android.camera/com.sonyericsson.android.camera.CameraActivity");
		mCameraList.add("com.miui.camera/com.miui.camera.Camera");
		mCameraList.add("com.samsung.camera/com.samsung.camera.Camera");
		mCameraList.add("com.lge.camera/com.lge.camera.CameraApp");
		mCameraList
				.add("com.google.android.gallery3d/com.android.camera.CameraLauncher");
		mArray.add(mCameraList);

		mSettingsList = new ArrayList<String>();
		mSettingsList.add("com.android.settings/com.android.settings.Settings");
		mSettingsList
				.add("com.android.settings/com.android.settings.framework.activity.HtcSettings");
		mArray.add(mSettingsList);

		mBrowserList = new ArrayList<String>();
		mBrowserList
				.add("com.android.browser/com.android.browser.BrowserActivity");
		mBrowserList
				.add("com.google.android.browser/com.android.browser.BrowserActivity");
		mArray.add(mBrowserList);

		mCalendarList = new ArrayList<String>();
		mCalendarList
				.add("com.android.calendar/com.android.calendar.LaunchActivity");
		mCalendarList.add("com.htc.calendar/com.htc.calendar.LaunchActivity");
		mCalendarList
				.add("com.google.android.calendar/com.android.calendar.LaunchActivity");
		mCalendarList
				.add("com.google.android.calendar/com.android.calendar.AllInOneActivity");
		mCalendarList
				.add("com.android.calendar/com.android.calendar.AllInOneActivity");
		mArray.add(mCalendarList);

		mClockList = new ArrayList<String>();
		mClockList
				.add("com.android.alarmclock/com.android.alarmclock.AlarmClock");
		mClockList
				.add("com.htc.android.worldclock/com.htc.android.worldclock.WorldClockTabControl");
		mClockList
				.add("com.sec.android.app.clockpackage/com.sec.android.app.clockpackage.ClockPackage");
		mClockList
				.add("com.google.android.deskclock/com.android.deskclock.DeskClock");
		mClockList.add("com.android.deskclock/com.android.deskclock.DeskClock");
		mClockList
				.add("com.motorola.blur.alarmclock/com.motorola.blur.alarmclock.AlarmClock");
		mClockList
				.add("com.android.deskclock/com.android.deskclock.DeskClockTabActivity");
		mArray.add(mClockList);

		mGMList = new ArrayList<String>();
		mGMList.add("com.google.android.gm/com.google.android.gm.ConversationListActivityGmail");
		mArray.add(mGMList);

		mEmailList = new ArrayList<String>();
		mEmailList.add("com.android.email/com.android.email.activity.Welcome");
		mEmailList.add("com.htc.android.mail/com.htc.android.mail.MailListTab");
		mEmailList
				.add("com.google.android.email/com.android.email.activity.Welcome");
		mEmailList
				.add("com.motorola.blur.email/com.motorola.blur.email.mailbox.ViewFolderActivity");
		mArray.add(mEmailList);

		mMusicList = new ArrayList<String>();
		mMusicList
				.add("com.android.music/com.android.music.MusicBrowserActivity");
		mMusicList.add("com.htc.music/com.htc.music.HtcMusic");
		mMusicList
				.add("com.sec.android.app.music/com.sec.android.app.music.list.activity.MpMainTabActivity");
		mMusicList
				.add("com.android.music/com.android.music.MusicBrowserActivity");
		mMusicList
				.add("com.android.music/com.android.music.list.activity.MpMainTabActivity");
		mMusicList
				.add("com.htc.music/com.htc.music.browserlayer.MusicBrowserTabActivity");
		mMusicList
				.add("com.google.android.music/com.android.music.activitymanagement.TopLevelActivity");
		mMusicList.add("com.motorola.cmp/com.motorola.cmp.HomeListActivity");
		mMusicList
				.add("com.miui.player/com.miui.player.drawerActivityGroup.MainActivityGroup");
		mMusicList
				.add("com.sonyericsson.music/com.sonyericsson.music.PlayerActivity");
		mMusicList
				.add("com.samsung.sec.android.MusicPlayer/com.samsung.sec.android.MusicPlayer.activity.MusicPlayerList");
		mMusicList
				.add("com.sec.android.app.music/com.sec.android.app.music.MusicBrowserTabActivity");
		mMusicList
				.add("com.miui.player/com.miui.player.ui.MusicBrowserActivity");
		mMusicList
				.add("com.android.mediacenter/com.android.mediacenter.ListBrowserActivity");
		mMusicList
				.add("com.sec.android.app.music/com.sec.android.app.music.MusicActionTabActivity");
		mArray.add(mMusicList);

		mGalleryList = new ArrayList<String>();
		mGalleryList.add("com.cooliris.media/com.cooliris.media.Gallery");
		mGalleryList
				.add("com.google.android.gallery3d/com.cooliris.media.Gallery");
		mGalleryList.add("com.android.camera/com.android.camera.GalleryPicker");
		mGalleryList
				.add("com.htc.album/com.htc.album.AlbumMain.ActivityMainDropList");
		mGalleryList.add("com.htc.album/com.htc.album.AlbumTabSwitchActivity");
		mGalleryList
				.add("com.google.android.gallery3d/com.android.gallery3d.app.Gallery");
		mGalleryList.add("com.motorola.gallery/com.motorola.gallery.TopScreen");
		mGalleryList
				.add("com.android.gallery/com.android.gallery.ui.MainActivity");
		mGalleryList
				.add("com.sonyericsson.gallery/com.sonyericsson.gallery.Gallery");
		mGalleryList
				.add("com.android.gallery/com.android.camera.GalleryPicker");
		mGalleryList
				.add("com.android.gallery3d/com.android.gallery3d.app.Gallery");
		mGalleryList.add("com.miui.gallery/com.miui.gallery.app.Gallery");
		mGalleryList
				.add("com.sec.android.gallery3d/com.sec.android.gallery3d.app.Gallery");
		mArray.add(mGalleryList);

		mVendingList = new ArrayList<String>();
		mVendingList
				.add("com.android.vending/com.android.vending.AssetBrowserActivity");
		mArray.add(mVendingList);

		mMapsList = new ArrayList<String>();
		mMapsList
				.add("com.google.android.apps.maps/com.google.android.maps.MapsActivity");
		mArray.add(mMapsList);
	}

	private static boolean exist(String word, ArrayList<String> arraylist) {
		for (Iterator<String> iterator = arraylist.iterator(); iterator
				.hasNext();) {
			if (iterator.next().equals(word))
				return true;
		}
		return false;
	}

	// public static ArrayList b() {
	// ArrayList arraylist = new ArrayList();
	// Iterator iterator = mArray.iterator();
	// int j1 = 0;
	// do {
	// int i1;
	// label0: {
	// if (iterator.hasNext()) {
	// ac ac = a((ArrayList) iterator.next());
	// if (ac == null)
	// continue;
	// arraylist.add(ac);
	// i1 = j1 + 1;
	// if (i1 != 6)
	// break label0;
	// }
	// return arraylist;
	// }
	// j1 = i1;
	// } while (true);
	// }

	public static boolean checkInDialerList(String str) {
		return exist(str, mDialerList);
	}

	public static boolean checkInMessageList(String str) {
		return exist(str, mMsgList);
	}

	public static boolean checkInGmailList(String str) {
		return exist(str, mGMList);
	}

}
